package gugu.domain;


import java.util.Calendar;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.DBRef;
import org.springframework.data.mongodb.core.mapping.Document;

@Document(collection = "SURVEY")
public class Survey {
	@Id
	private String id;
	private PositionElement summary;
	private PositionElement comments;
	private PositionElement questionZone;
	private Calendar startTime;
	private Calendar endTime;
	private Calendar lastResponse;
	private SurveyTypeEnum type;
	
	@DBRef
	private User owner;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Calendar getStartTime() {
		return startTime;
	}

	public void setStartTime(Calendar startTime) {
		this.startTime = startTime;
	}

	public Calendar getEndTime() {
		return endTime;
	}

	public void setEndTime(Calendar endTime) {
		this.endTime = endTime;
	}

	public Calendar getLastResponse() {
		return lastResponse;
	}

	public void setLastResponse(Calendar lastResponse) {
		this.lastResponse = lastResponse;
	}

	public SurveyTypeEnum getType() {
		return type;
	}

	public void setType(SurveyTypeEnum type) {
		this.type = type;
	}

	public User getOwner() {
		return owner;
	}

	public void setOwner(User owner) {
		this.owner = owner;
	}
	
	public void setSummary(SurveySummary summary) {
		this.summary = summary;
	}

	public void setComments(SurveyComment comments) {
		this.comments = comments;
	}
}
